
from . import flutter
TextStyle = flutter.TextStyle
Container = flutter.Container
Center = flutter.Center
Text = flutter.Text
Stack = flutter.Stack
Positioned = flutter.Positioned
Transform = flutter.Transform
LinearGradient = flutter.LinearGradient
Colors = flutter.Colors
TextAlign = flutter.TextAlign
EdgeInsets = flutter.EdgeInsets
FontWeight = flutter.FontWeight
FontStyle = flutter.FontStyle
BoxShadow = flutter.BoxShadow
BoxShape = flutter.BoxShape
RichText = flutter.RichText
TextSpan = flutter.TextSpan
TextOverflow = flutter.TextOverflow
BorderRadius = flutter.BorderRadius
Offset = flutter.Offset
Scaffold = flutter.Scaffold
AppBar = flutter.AppBar
IconButton = flutter.IconButton
Icon = flutter.Icon
Icons = flutter.Icons
#Avatar = flutter.Avatar
Chip = flutter.Action
Action = flutter.Action
ActionChip = flutter.ActionChip
TrailingAction = flutter.TrailingAction
InputChip = flutter.InputChip
ChipSet = flutter.ChipSet
# https://flutter.cn/docs/development/ui/widgets-intro
Slider = flutter.Slider
Column = flutter.Column

def 使用Material组件():
    sysu_info = '''wyk'''
    return Scaffold(
        appBar=AppBar(
            leading=IconButton(
                icon=Icon(Icons.menu),
                onPressed=None,
            ),
            title=Text('Example title'),
            actions=[
                IconButton(
                    icon=Icon(Icons.search),
                    onPressed=None,
                ),
            ],
        ),
        # body is the majority of the screen.
        body=Container(
                Slider(
                    value=0,
                    _min=0,
                    _max=100,
                    label="test slider",
                ),
                
        
            # Center(
            #     # child=Chip(
            #     #     avatar=Icon(Icons.remove),
            #     #     label=Text("test"),
            #     # ),
            #     child=Chip(
            #         label=Text("test"),
            #         selected=True,
            #         disabled=True,
            #     )
            #     # child=ActionChip(
            #     #         label=Text("test"),
            #     #         avatar=Icon(Icons.remove),
            #     #         selected=True,
            #     #         disabled=True,
            #     # ),
            #     # TrailingAction(
            #     #     label=Text("test"),
            #     # ),
            #     # InputChip(
            #     #     label=Text("t1")
            #     # )
            #     # ChipSet(
            #     #     chip=InputChip(label=Text("t1")),
            #     # )
            #     # child=Slider(
            #     #     value=10,
            #     #     _min=0,
            #     #     _max=50,
            #     #     label="test slider",

            #     # )
                
            #),
            color=Colors.white,
        ),
    )


def run_app():
	widget = 使用Material组件()
	widget.render(parent=javascript.document.body)
